From: Kim F. Storm Date: Sun, 16 Nov 2003 23:44:22 +0000 (+0000) Subject: (start_display): Set it->first_vpos. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24976 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ae502ea6866a0678405d33725d539dfa01e817f9;p=emacs.git (start_display): Set it->first_vpos. (try_window_id): Use first_vpos to start display in first _text_ line if no reusable lines at start of window with header line. --- diff --git a/src/xdisp.c b/src/xdisp.c index 8b026fefa9e..4a32cea2b6e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2201,6 +2201,7 @@ start_display (it, w, pos) row = w->desired_matrix->rows + first_vpos; init_iterator (it, w, CHARPOS (pos), BYTEPOS (pos), row, DEFAULT_FACE_ID); + it->first_vpos = first_vpos; if (!it->truncate_lines_p) { @@ -13092,8 +13093,9 @@ try_window_id (w) else { /* There are no reusable lines at the start of the window. - Start displaying in the first line. */ + Start displaying in the first text line. */ start_display (&it, w, start); + it.vpos = it.first_vpos; start_pos = it.current.pos; }